﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace P2.Cuberry.Modules.Clinicom.BedList
{
    /// <summary>
    /// Interaction logic for Beds.xaml
    /// </summary>
    public partial class Beds : UserControl
    {
        public Beds()
        {
            InitializeComponent();
        }

        //public void FillDataGrid(DataTable dtx)
        //{
        //    //nothing is done with dtx
        //    DataTable dc = ReceptionDAL.GetOccupancy();

        //    foreach (DataRow dr in dc.Rows)
        //    {
        //        Bed bedX = ((Bed)this.floors.Controls["Floor" + dr["CCFloor"].ToString()].Controls["bed" + dr["BedNr"].ToString()]);
        //        bedX.BedNo = dr["BedNr"].ToString();
        //        bedX.PatientName = dr["FirstNameAr"].ToString() + " " + dr["MiddleNameAr"].ToString() + " " + dr["LastNameAr"].ToString();
        //        bedX.AccountNo = dr["AccountID"].ToString();
        //        bedX.Gender = dr["GenderEn"].ToString();
        //        bedX.Status = dr["Status"].ToString();
        //        bedX.repaint();

        //    }
        //}

    }
}
